Mobile device with a smart battery

ABSTRACT

Various embodiments are described for a mobile communication device having a main processor for controlling the operation of the mobile communication device; a device memory coupled to the main processor for storing a plurality of battery information profiles; and a smart battery coupled to the main processor for providing supply power. The smart battery includes a battery processor for controlling the operation of the smart battery and communicating with the main processor; and a battery memory coupled to the battery processor for storing a Battery ID indicating the model of the smart battery. The main processor is configured to communicate with the battery processor to obtain the Battery ID and select one the battery information profiles based on the Battery ID.

CROSS REFERENCED TO RELATED APPLICATION

This application is a continuation of U.S. patent application Ser. No.11/549,461, filed on Oct. 13, 2006, which claims the benefit of U.S.Provisional Application No. 60/726,173, filed on Oct. 14, 2005; thecontents of application Ser. No. 11/549,461 and of Application No.60/726,173 are hereby incorporated by reference.

FIELD

The embodiments described herein relate to a mobile device having asmart battery.

BACKGROUND

Peripheral devices, such as mobile wireless devices or personal dataassistants, can be powered by internal means, such as an internalbattery pack. The internal battery pack is an assembly of one or morebatteries and provides a certain charge capacity. Different batterypacks have different charge capacities, different termination voltagessuch as 4.2 V and 4.4 V, for example, as well as differentcharging/discharging characteristics. Typically, a battery pack has abattery ID resistor that indicates the battery type from which thecharge capacity of the battery pack can be ascertained.

The charge capacity and the battery type are important for severalreasons. For instance, if the battery is rechargeable, it is importantto charge the battery to the proper charge capacity and at the properrate. If the battery is overcharged, the battery and the mobile devicein which it is used can both become damaged. This situation is becomingincreasingly more likely due to the increased number of counterfeitbatteries that are on the market. For battery packs with battery IDresistors, it is simple to read the resistance value of the battery IDresistor and manufacture a counterfeit battery pack with anotherresistor that has the same resistance value. However, the counterfeitbatteries, as well as some third party non-authorized batteries,generally do not have the charge capacity of an authentic battery, maynot have the required safety protection circuitry, and may not becompatible with the charging method being employed by the mobile deviceand therefore could possibly suffer catastrophic failure duringcharging, or through normal usage. One way to deal with counterfeitbattery packs may be to use “smart batteries” which include an embeddedmicroprocessor that can be used to provide security capabilities.

In addition, the mobile wireless device usually maintains informationfor the different battery packs that can be used. For instance, themobile wireless device can maintain information on thecharging/discharging characteristics of various battery packs. Thisinformation may be in the form of a look-up table (LUT) that providescharge capacity versus voltage information. The information in the LUTcan be used by the mobile wireless device to calculate and displaybattery charge capacity information to a user of the mobile wirelessdevice. However, once a mobile wireless device is released into themarket, it is difficult to maintain compatibility between the mobilewireless device and new batteries since the battery information storedon the mobile wireless device will be out of date for these newbatteries. Each battery type has unique characteristics that arerequired knowledge for battery monitoring software. The batterymonitoring software that ships with the mobile wireless device needs tobe able to differentiate between different battery packs, so that thebattery pack can be charged according to the maximum charge rate, aswell as use battery curves that are specific to the type of batterypack. This is necessary so that the battery that ships with the devicecan be changed, and so that a user can change their battery in thefuture without incurring any problems. The data updating can be donethrough a software upgrade, but users find it inconvenient to updatetheir mobile wireless device.

BRIEF DESCRIPTION OF THE DRAWINGS

For a better understanding of the embodiments described herein and toshow more clearly how they may be carried into effect, reference willnow be made, by way of example only, to the accompanying drawings whichshow the exemplary embodiments and in which:

FIG. 1 is a block diagram of an exemplary embodiment of a mobilecommunication device;

FIG. 2 is a block diagram of an exemplary embodiment of a communicationsubsystem component of the mobile communication device of FIG. 1;

FIG. 3 is a block diagram of an exemplary embodiment of a node of awireless network that the mobile communication device of FIG. 1 maycommunicate with;

FIG. 4 is a block diagram of an exemplary embodiment of a generic smartbattery that can be used in the mobile communications device of FIG. 1;

FIG. 5A is a schematic of an exemplary embodiment of a portion of abattery interface that can be used in the mobile communication device ofFIG. 1 to couple the main processor to the smart battery;

FIG. 5B is a schematic of another exemplary embodiment of a portion of abattery interface that can be used in the mobile communication device ofFIG. 1 to couple the main processor to the smart battery;

FIG. 5C is a schematic of a portion of another exemplary embodiment of asmart battery;

FIG. 6A is a block diagram of an exemplary embodiment of a generalstructure for a packet that can be used for communication between themain processor and the battery processor of the mobile communicationsdevice of FIG. 1;

FIG. 6B is a block diagram of an exemplary embodiment of a packet thatcan be used for a protocol version request or a battery informationrequest;

FIG. 6C is a block diagram of an exemplary embodiment of a protocolversion response packet;

FIG. 6D is a block diagram of an exemplary embodiment of a packet thatcan be used for a battery authentication challenge, a batteryauthentication response or a battery information response;

FIG. 7A is a block diagram of an exemplary embodiment of a batteryinformation data construct;

FIG. 7B is a block diagram of an exemplary embodiment of a batterycharge/discharge data construct;

FIG. 8 is a flowchart of an exemplary embodiment of an authenticationprocess employed by the main processor of the mobile communicationsdevice of FIG. 1 to authenticate the smart battery;

FIG. 9 is a flowchart showing the typical operation of the mobilecommunications device having a smart battery that may or may not beauthentic; and

FIG. 10 is a flowchart of an exemplary manufacturing process formanufacturing a mobile communication device having a smart battery.

These and other features of the exemplary embodiments are described inmore detail below.

DESCRIPTION

It will be appreciated that for simplicity and clarity of illustration,where considered appropriate, reference numerals may be repeated amongthe figures to indicate corresponding or analogous elements or steps. Inaddition, numerous specific details are set forth in order to provide athorough understanding of the exemplary embodiments described herein.However, it will be understood by those of ordinary skill in the artthat the embodiments described herein may be practiced without thesespecific details. In other instances, well-known methods, procedures andcomponents have not been described in detail so as not to obscure theembodiments described herein. Furthermore, this description is not to beconsidered as limiting the scope of the embodiments described herein inany way, but rather as merely describing the implementation of thevarious embodiments described herein. Further, the term battery packrefers to a battery pack having one or more batteries or cells.

The embodiments described herein generally have applicability in thefield of data communication for mobile communication devices that use a“smart battery” which is a battery that includes a battery processor andother related circuitry to allow the smart battery to communicate withthe mobile device. Various types of information can be communicatedbetween the battery processor and the processor of the mobile device. Tofacilitate an understanding, the embodiments provided herein will bedescribed in terms of a mobile wireless communication device that has amain processor, a battery interface and a smart battery having a batteryprocessor and related electronics as will be described in more detail.However, it should be understood that the structure and functionality ofthe embodiments described herein can also be applied to a batterycharger that charges a smart battery.

The embodiments generally make use of a mobile communication device,hereafter referred to as a mobile device, that is a two-waycommunication device with advanced data communication capabilitieshaving the capability to communicate in a wireless or wired fashion withother computing devices including other mobile communication devices.The mobile device can communicate with other devices through a networkof transceiver stations. The mobile device may also include thecapability for voice communications. However, depending on thefunctionality provided by the mobile device and the structure of themobile device, it may be referred to as a data messaging device, acellular telephone with data messaging capabilities, a wirelessorganizer, a wireless Internet appliance, a personal digital assistant,a smart phone, a handheld wireless communication device (with or withouttelephony capabilities), a wirelessly enabled notebook computer and thelike.

Referring first to FIG. 1, shown therein is a block diagram of a mobiledevice 100 in one exemplary implementation. The mobile device 100comprises a number of components, the controlling component being a mainprocessor 102 which controls the overall operation of mobile device 100.Communication functions, including data and voice communications, areperformed through a communication subsystem 104. The communicationsubsystem 104 receives messages from and sends messages to a wirelessnetwork 200. In some implementations of the mobile device 100, thecommunication subsystem 104 is configured in accordance with the GlobalSystem for Mobile Communication (GSM) and General Packet Radio Services(GPRS) standards. The GSM/GPRS wireless network is used worldwide. Otherstandards that can be used include the Enhanced Data GSM Environment(EDGE), Universal Mobile Telecommunications Service (UMTS), CodeDivision Multiple Access (CDMA), and Intelligent Digital EnhancedNetwork (iDEN™) standards. New standards are still being defined, but itis believed that they will have similarities to the network behaviordescribed herein, and it will be understood by persons skilled in theart that the embodiments described herein can use any other suitablestandards that are developed in the future. The wireless link connectingthe communication subsystem 104 with the wireless network 200 representsone or more different Radio Frequency (RF) channels, operating accordingto defined protocols specified for GSM/GPRS communications. With newernetwork protocols, these channels are capable of supporting both circuitswitched voice communications and packet switched data communications.

Although the wireless network 200 associated with the mobile device 100is a GSM/GPRS wireless network in some implementations, other wirelessnetworks can also be associated with the mobile device 100 in otherimplementations. The different types of wireless networks that can beemployed include, for example, data-centric wireless networks,voice-centric wireless networks, and dual-mode networks that can supportboth voice and data communications over the same physical base stations.Combined dual-mode networks include, but are not limited to, CodeDivision Multiple Access (CDMA) or CDMA2000 networks, iDEN networks,GSM/GPRS networks (as mentioned above), and future third-generation (3G)networks like EDGE and UMTS. Some other examples of data-centricnetworks include WiFi 802.11, Mobitex™ and DataTAC™ networkcommunication systems. Examples of other voice-centric data networksinclude Personal Communication Systems (PCS) networks like GSM and TimeDivision Multiple Access (TDMA) systems.

The main processor 102 also interacts with additional subsystems such asa Random Access Memory (RAM) 106, a device memory 108, a display 110, anauxiliary input/output (I/O) subsystem 112, a data port 114, a keyboard116, a speaker 118, a microphone 120, short-range communicationssubsystem 122, and other device subsystems 124.

Some of the subsystems of the mobile device 100 performcommunication-related functions, whereas other subsystems can provide“resident” or on-device functions. By way of example, the display 110and the keyboard 116 can be used for both communication-relatedfunctions, such as entering a text message for transmission over thenetwork 200, and device-resident functions such as a calculator or tasklist. Operating system software used by the main processor 102 istypically stored in a persistent store such as the device memory 108,which can alternatively be a read-only memory (ROM) or similar storageelement (not shown). In some cases the device memory 108 can be flashmemory. Those skilled in the art will appreciate that the operatingsystem, specific device applications, or parts thereof, can betemporarily loaded into a volatile store such as the RAM 106.

The mobile device 100 can send and receive communication signals overthe wireless network 200 after required network registration oractivation procedures have been completed. Network access is associatedwith a subscriber or user of the mobile device 100. To identify asubscriber, the mobile device 100 may require a SIM/RUIM card 126 (i.e.Subscriber Identity Module or a Removable User Identity Module) to beinserted into a SIM/RUIM interface 128 in order to communicate with anetwork. Accordingly, the SIM card/RUIM 126 and the SIM/RUIM interface128 are entirely optional.

The SIM card or RUIM 126 is one type of a conventional “smart card” thatcan be used to identify a subscriber of the mobile device 100 and topersonalize the mobile device 100, among other things. Without the SIMcard 126, the mobile device 100 is not fully operational forcommunication with the wireless network 200. By inserting the SIMcard/RUIM 126 into the SIM/RUIM interface 128, a subscriber can accessall subscribed services. Services can include: web browsing andmessaging such as e-mail, voice mail, Short Message Service (SMS), andMultimedia Messaging Services (MMS). More advanced services can include:point of sale, field service and sales force automation. The SIMcard/RUIM 126 includes a processor and memory for storing information.Once the SIM card/RUIM 126 is inserted into the SIM/RUIM interface 128,it is coupled to the main processor 102. In order to identify thesubscriber, the SIM card/RUIM 126 contains some user parameters such asan International Mobile Subscriber Identity (IMSI). An advantage ofusing the SIM card/RUIM 126 is that a subscriber is not necessarilybound by any single physical mobile device. The SIM card/RUIM 126 maystore additional subscriber information for a mobile device as well,including datebook (or calendar) information and recent callinformation. Alternatively, user identification information can also beprogrammed into the device memory 108.

The mobile device 100 is a battery-powered device and can include abattery interface 132 for interfacing with a smart battery 130. In thiscase, the battery interface 132 is also coupled to a power managementmodule 134, which assists the battery 130 in providing power to themobile device 100. The main processor 102 can also be coupled to thepower management module 134 for sharing information. However, inalternative embodiments, the battery interface 132 can be provided bythe smart battery 130; both of these components are described in furtherdetail below.

The main processor 102, in addition to its operating system functions,enables execution of software applications 136 on the mobile device 100.The subset of software applications 136 that control basic deviceoperations, including data and voice communication applications, willnormally be installed on the mobile device 100 during its manufacture.The software applications 136 can include an email program, a webbrowser, an attachment viewer, and the like.

The mobile device 100 further includes a device state module 138, anaddress book 140, a Personal Information Manager (PIM) 142, and othermodules 144. The device state module 138 can provide persistence, i.e.the device state module 138 ensures that important device data is storedin persistent memory, such as the device memory 108, so that the data isnot lost when the mobile device 100 is turned off or loses power. Theaddress book 140 can provide information for a list of contacts for theuser. For a given contact in the address book, the information caninclude the name, phone number, work address and email address of thecontact, among other information. The other modules 144 can include aconfiguration module (not shown) as well as other modules that can beused in conjunction with the SIM/RUIM interface 128.

The PIM 142 has functionality for organizing and managing data items ofinterest to a subscriber, such as, but not limited to, e-mail, calendarevents, voice mails, appointments, and task items. A PIM application hasthe ability to send and receive data items via the wireless network 200.PIM data items may be seamlessly integrated, synchronized, and updatedvia the wireless network 200 with the mobile device subscriber'scorresponding data items stored and/or associated with a host computersystem. This functionality creates a mirrored host computer on themobile device 100 with respect to such items. This can be particularlyadvantageous when the host computer system is the mobile devicesubscriber's office computer system.

Additional applications can also be loaded onto the mobile device 100through at least one of the wireless network 200, the auxiliary I/Osubsystem 112, the data port 114, the short-range communicationssubsystem 122, or any other suitable device subsystem 124. Thisflexibility in application installation increases the functionality ofthe mobile device 100 and can provide enhanced on-device functions,communication-related functions, or both. For example, securecommunication applications can enable electronic commerce functions andother such financial transactions to be performed using the mobiledevice 100.

The data port 114 enables a subscriber to set preferences through anexternal device or software application and extends the capabilities ofthe mobile device 100 by providing for information or software downloadsto the mobile device 100 other than through a wireless communicationnetwork. The alternate download path may, for example, be used to loadan encryption key onto the mobile device 100 through a direct and thusreliable and trusted connection to provide secure device communication.

The data port 114 may be any suitable port that enables datacommunication between the mobile device 100 and another computingdevice. The data port may be a serial or a parallel port. In someinstances, the data port 114 may be a USB port that includes data linesfor data transfer and a supply line that can provide a charging currentto charge the mobile device 100.

The short-range communications subsystem 122 provides for communicationbetween the mobile device 100 and different systems or devices, withoutthe use of the wireless network 200. For example, the subsystem 122 caninclude an infrared device and associated circuits and components forshort-range communication. Examples of short-range communicationstandards include those developed by the Infrared Data Association(IrDA), Bluetooth, and the 802.11 family of standards developed by IEEE.

In use, a received signal such as a text message, an e-mail message, orweb page download will be processed by the communication subsystem 104and input to the main processor 102. The main processor 102 will thenprocess the received signal for output to the display 110 oralternatively to the auxiliary I/O subsystem 112. A subscriber can alsocompose data items, such as e-mail messages, for example, using thekeyboard 116 in conjunction with the display 110 and possibly theauxiliary I/O subsystem 112. The auxiliary subsystem 112 can includedevices such as: a touch screen, mouse, track ball, infrared fingerprintdetector, or a roller wheel with dynamic button pressing capability. Thekeyboard 116 is preferably an alphanumeric keyboard and/ortelephone-type keypad. However, other types of keyboards can also beused. A composed item can be transmitted over the wireless network 200through the communication subsystem 104.

For voice communications, the overall operation of the mobile device 100is substantially similar, except that the received signals are output tothe speaker 118, and signals for transmission are generated by themicrophone 120. Alternative voice or audio I/O subsystems, such as avoice message recording subsystem, can also be implemented on the mobiledevice 100. Although voice or audio signal output is accomplishedprimarily through the speaker 118, the display 110 can also be used toprovide additional information such as the identity of a calling party,duration of a voice call, or other voice call related information.

Referring now to FIG. 2, a block diagram of an exemplary embodiment ofthe communication subsystem component 104 of FIG. 1 is shown. Thecommunication subsystem 104 comprises a receiver 150 and a transmitter152, as well as associated components such as one or more embedded orinternal antenna elements 154, 156, Local Oscillators (LOs) 158, and acommunications processor 160 for wireless communication. Thecommunications processor 160 can be a Digital Signal Processor (DSP). Aswill be apparent to those skilled in the field of communications, theparticular design of the communication subsystem 104 can depend on thecommunication network with which the mobile device 100 is intended tooperate. Thus, it should be understood that the design illustrated inFIG. 2 serves only as an example.

Signals received by the antenna 154 through the wireless network 200 areinput to the receiver 150, which can perform such common receiverfunctions as signal amplification, frequency down conversion, filtering,channel selection, and analog-to-digital (ND) conversion. ND conversionof a received signal allows more complex communication functions such asdemodulation and decoding to be performed by the communicationsprocessor 160. In a similar manner, signals to be transmitted areprocessed, including modulation and encoding, by the communicationsprocessor 160. These processed signals are input to the transmitter 152for digital-to-analog (D/A) conversion, frequency up conversion,filtering, amplification and transmission over the wireless network 200via the antenna 156. The communications processor 160 not only processescommunication signals, but also provides for receiver and transmittercontrol. For example, the gains applied to communication signals in thereceiver 150 and transmitter 152 can be adaptively controlled throughautomatic gain control algorithms implemented in the communicationsprocessor 160.

The wireless link between the mobile device 100 and the wireless network200 can contain one or more different channels, typically different RFchannels, and associated protocols used between the mobile device 100and the wireless network 200. An RF channel is a limited resource thatmust be conserved, typically due to limits in overall bandwidth andlimited battery power of the mobile device 100.

When the mobile device 100 is fully operational, the transmitter 152 istypically keyed or turned on only when it is sending to the wirelessnetwork 200 and is otherwise turned off to conserve resources.Similarly, the receiver 150 is periodically turned off to conserve poweruntil it is needed to receive signals or information (if at all) duringdesignated time periods.

Referring now to FIG. 3, a block diagram of an exemplary embodiment of anode of the wireless network 200 is shown as 202. In practice, thewireless network 200 comprises one or more nodes 202. The mobile device100 communicates with the node 202. In the exemplary implementation ofFIG. 3, the node 202 is configured in accordance with General PacketRadio Service (GPRS) and Global Systems for Mobile (GSM) technologies.The node 202 includes a base station controller (BSC) 204 with anassociated tower station 206, a Packet Control Unit (PCU) 208 added forGPRS support in GSM, a Mobile Switching Center (MSC) 210, a HomeLocation Register (HLR) 212, a Visitor Location Registry (VLR) 214, aServing GPRS Support Node (SGSN) 216, a Gateway GPRS Support Node (GGSN)218, and a Dynamic Host Configuration Protocol (DHCP) 220. This list ofcomponents is not meant to be an exhaustive list of the components ofevery node 202 within a GSM/GPRS network, but rather a list ofcomponents that can be used in communications through the wirelessnetwork 200.

In a GSM network, the MSC 210 is coupled to the BSC 204 and to alandline network, such as a Public Switched Telephone Network (PSTN) 222to satisfy circuit switching requirements. The connection through PCU208, SGSN 216 and GGSN 218 to the public or private network (Internet)224 (also referred to herein generally as a shared networkinfrastructure) represents the data path for GPRS capable mobiledevices. In a GSM network extended with GPRS capabilities, the BSC 204also contains a Packet Control Unit (PCU) 208 that connects to the SGSN216 to control segmentation, radio channel allocation and to satisfypacket switched requirements. To track mobile device location andavailability for both circuit switched and packet switched management,the HLR 212 is shared between the MSC 210 and the SGSN 216. Access tothe VLR 214 is controlled by the MSC 210.

The station 206 is a fixed transceiver station. The station 206 and BSC204 together form the fixed transceiver equipment. The fixed transceiverequipment provides wireless network coverage for a particular coveragearea commonly referred to as a “cell”. The fixed transceiver equipmenttransmits communication signals to and receives communication signalsfrom mobile devices within its cell via the station 206. The fixedtransceiver equipment normally performs such functions as modulation andpossibly encoding and/or encryption of signals to be transmitted to themobile device 100 in accordance with particular, usually predetermined,communication protocols and parameters, under control of its controller.The fixed transceiver equipment similarly demodulates and possiblydecodes and decrypts, if necessary, any communication signals receivedfrom the mobile device 100 within its cell. The communication protocolsand parameters may vary between different nodes. For example, one nodemay employ a different modulation scheme and operate at differentfrequencies than other nodes.

For all mobile devices 100 registered with a specific network, permanentconfiguration data such as a user profile is stored in the HLR 212. TheHLR 212 also contains location information for each registered mobiledevice and can be queried to determine the current location of a mobiledevice. The MSC 210 is responsible for a group of location areas andstores the data of the mobile devices currently in its area ofresponsibility in the VLR 214. Further, the VLR 214 also containsinformation on mobile devices that are visiting other networks. Theinformation in the VLR 214 includes part of the permanent mobile devicedata transmitted from the HLR 212 to the VLR 214 for faster access. Bymoving additional information from a remote HLR 212 node to the VLR 214,the amount of traffic between these nodes can be reduced so that voiceand data services can be provided with faster response times and at thesame time require less use of computing resources.

The SGSN 216 and GGSN 218 are elements added for GPRS support; namelypacket switched data support, within GSM. The SGSN 216 and MSC 210 havesimilar responsibilities within the wireless network 200 by keepingtrack of the location of each mobile device 100. The SGSN 216 alsoperforms security functions and access control for data traffic on thewireless network 200. The GGSN 218 provides internetworking connectionswith external packet switched networks and connects to one or moreSGSN's 216 via an Internet Protocol (IP) backbone network operatedwithin the network 200. During normal operations, a given mobile device100 must perform a “GPRS Attach” to acquire an IP address and to accessdata services. This requirement is not present in circuit switched voicechannels as Integrated Services Digital Network (ISDN) addresses areused for routing incoming and outgoing calls. Currently, all GPRScapable networks use private, dynamically assigned IP addresses, thusrequiring the DHCP server 220 to be connected to the GGSN 218. There aremany mechanisms for dynamic IP assignment, including using a combinationof a Remote Authentication Dial-In User Service (RADIUS) server and DHCPserver. Once the GPRS Attach is complete, a logical connection isestablished from the mobile device 100, through the PCU 208, and theSGSN 216 to an Access Point Node (APN) within the GGSN 218. The APNrepresents a logical end of an IP tunnel that can either access directInternet compatible services or private network connections. The APNalso represents a security mechanism for the wireless network 200,insofar as each mobile device 100 must be assigned to one or more APNsand the mobile devices 100 cannot exchange data without first performinga GPRS Attach to an APN that it has been authorized to use. The APN maybe considered to be similar to an Internet domain name such as“myconnection.wireless.com”.

Once the GPRS Attach is complete, a tunnel is created and all traffic isexchanged within standard IP packets using any protocol that can besupported in IP packets. This includes tunneling methods such as IP overIP as in the case with some IPSecurity (IPsec) connections used withVirtual Private Networks (VPN). These tunnels are also referred to asPacket Data Protocol (PDP) contexts and there are a limited number ofthese available in the wireless network 200. To maximize use of the PDPContexts, the wireless network 200 will run an idle timer for each PDPContext to determine if there is a lack of activity. When the mobiledevice 100 is not using its PDP Context, the PDP Context can bede-allocated and the IP address returned to the IP address pool managedby the DHCP server 220.

Referring now to FIG. 4, shown therein is a block diagram of anexemplary embodiment of the smart battery 130 that can be used in themobile device 100. The smart battery 130 includes a battery processor252, battery memory 254, a battery interface 256, switching andprotection circuitry 258, measurement circuitry 260 including an analogto digital converter (not shown) and a battery module 262. The batterymodule 262 includes one or more batteries, which are generallyrechargeable. The batteries can be made from nickel-cadmium,lithium-ion, or other suitable composite material and the like. In someimplementations, the battery processor 252 can be the PIC10F202 made byMicrochip of Chandler, Ariz., USA. In these cases, a single GeneralPurpose Input/Output (GPIO) pin on the battery processor 252 can beconnected to the main processor 102 to receive instructions from themain processor 102 and to provide data to the main processor 102.

The battery processor 252 controls the operation of the smart battery130 and can communicate with the main processor 102 via the batteryinterface 256. The battery processor 252 includes registers, stacks,counters, a watchdog timer, and other components (all not shown) thatare commonly used by a processor as is known by those skilled in theart. The battery processor 252 can also include a clock (not shown). Thesmart battery 130 can store information in the battery memory 254. Thebattery memory 254 can be a combination of volatile and non-volatilememory.

The measurement circuitry 260 can be used by the smart battery 130 toread certain data related to the operation of the battery module 262such as battery current, battery voltage, battery temperature and thelike. These measurements can be used to obtain an accurate estimate ofthe amount of charge capacity remaining in the battery module 262. Toperform these measurements, the measurement circuitry 260 includes ananalog to digital converter (ADC) (not shown). The measurement circuitry260 can be optional, since in alternative embodiments, the mobile device100 can include circuitry for performing the functionality of themeasurement circuitry 260.

The switching and protection circuitry 258 can be used to protect thesmart battery 130. The switching and protection circuitry 258 can actlike a circuit breaker and can be activated by the battery processor 252or the main processor 102 under certain situations to ensure that thesmart battery 130 is not damaged in use. For instance, the switching andprotection circuitry 258 can include a thermal breaker to disable thesmart battery 130 when the temperature of the battery module 262 is toohigh. The thermal breaker can also disconnect the smart battery 130under high current loads if other protection circuitry fails. Theswitching and protection circuitry 258 can also protect against shortcircuits, under voltage conditions, over voltage charging, reversepolarity being applied to the battery 130, etc. Accordingly, theswitching and protection circuitry 258 can also be used during thecharging, discharging or pre-charging of the battery module 262 as wellas for battery cell balancing. Additional protection circuitry can beincluded in the battery interface 132.

The battery module 262 provides the supply power to the batteryprocessor 252, which then provides the supply power to the mainprocessor 102 via the battery interface 256, using connections commonlyknown by those skilled in the art, such a via a system power bus. Thebattery interface 256 is optional if the mobile device 100 includes thebattery interface 132, which can provide the same functionality as thebattery interface 256. For the remainder of this description of thisexemplary embodiment, it is assumed that there is no battery interface132, and that the smart battery 130 provides the battery interface 256,although in other embodiments, this need not be the case.

Referring now to FIG. 5A, shown therein is a schematic of an exemplaryembodiment of a portion of the battery interface 256 that can be used tocouple the main processor 102 to the smart battery 130 (supply powerconnections are not shown). Conventional methods for batteryidentification (i.e. model, manufacturer, etc.) only use a batteryidentification resistor in the conventional battery pack with anassociated battery ID data line. Correspondingly, the battery interface256 couples the main processor 102 with the battery data line SMART_BATof the smart battery 130 via a single communication line 302. TheSMART_BAT data line is connected to an input/output pin on the smartbattery 130. However, the smart battery 130 is configured to communicatewith host processors that work with a battery pack having a battery IDresistor, or a smart battery as is described in more detail below.

Since the battery interface 256 includes the single communication line302 for communication between the main processor 102 and the batteryprocessor 252, and since the main processor 102 transmits data to andreceives data from the battery processor 252, the communication line 302can be configured as a half-duplex communication line. The use of ahalf-duplex communication line reduces the need for more communicationlines between the main processor 102 and the battery processor 252.

During operation, at a given moment in time, data flows in one directionfor a half-duplex communication line. Accordingly, the communicationline 302 is connected to both transmit and receive pins 304 and 306 onthe main processor 102. In some cases, the transmit and receive pins 304and 306 on the main processor 102 can be implemented with UART transmitand receive ports/pins. The main processor 102 uses the UART interfaceas they are normally used, but ignores the receiver pin 306 duringtransmission on the transmit pin 304.

Further, the use of half-duplex communication requires that only one ofthe main processor 102 and the battery processor 252 communicate at agiven point in time. This can be accomplished by defining one of theprocessors 102 and 252 as a master and the other as a slave. Generally,the main processor 102 is the master and the battery processor 252 isthe slave.

In some implementations, the smart battery 130 automatically operates inthe lowest possible power state to conserve energy. This is also donesince there may not always be a main processor connected to the smartbattery 130 to instruct the smart battery 130 to enter into sleep mode.To address these issues, in some implementations, low power consumptionand reliability can be obtained by using the watchdog timer of thebattery processor 252 as a total system reset/sleep mechanism. However,the watchdog count-down timer should not be reset since it is possiblethat a coding error could lead to the clear watchdog timer instructionbeing called in a loop. When the watchdog counter hits zero, the mobiledevice 100 is reset and the mobile device 100 restarts. However, if anoperation has to be performed that takes longer than the watchdogtimer/counter, then the watchdog timer can be reset at least once toensure that the operation runs to completion and the mobile device 100does not restart.

The battery interface 256 also includes protection circuitry forprotecting the main processor 102 from ElectroStatic Discharge (ESD) onthe communication line 302. In some implementations, the protectioncircuitry can be an RC network. In the exemplary embodiment of FIG. 5A,the RC network for providing ESD protection includes resistor R3 andcapacitor C1. Resistor R2 can be used as a pull-up resistor. A firstnode of the resistor R2 is connected to the transmit pin 304 and asecond node of the resistor R2 is connected to the receive pin 306. Afirst node of the resistor R3 is connected to the second node ofresistor R2 and a second node of the resistor R3 is connected to a firstnode of the capacitor C1. A second node of the capacitor C1 is connectedto ground. In an exemplary implementation, the resistor R2 can have aresistance of 1 kΩ, the resistor R3 can have a resistance of 150Ω andthe capacitor C1 can have a capacitance of 15 pF. The value of theresistor R2 depends on the ESD network selected for the battery dataline (which is discussed further below). The resistor R2 can act as apull-up resistor when the main processor 102 is operating in receivemode. In this exemplary embodiment, the output voltage on the transmitpin 304 can be 2.8 V or 2.6 V depending on the communication chipsetused by the mobile device 100. For CDMA chipsets, 2.6 V can be used.

The use of an RC network for the protection circuitry slows down thedata rate on the communication line 302. For this exemplaryimplementation, the data rate has a maximum rate of approximately 300bits per second. However, the limit of 300 bits per second for the datarate can be beneficial from a security point of view since, for a lowerdata rate, it will take a third party longer to “hack” any securityalgorithms that are stored on the smart battery 130. In someembodiments, if a cryptographic algorithm (i.e. a cryptographic method)is executed by the battery processor 252, the computational complexityof the cryptographic algorithm can be adjusted so that the algorithmtakes longer to execute which can also deter hacking.

In some cases, the battery processor 252 can be configured to act as anopen drain device and a pull-up resistor can be used with the mainprocessor 102. This is because the Vcc voltage level, and hence theoutput drive voltage on the battery processor 252, may exceed the ratedvoltage of the transmit and receive pins 304 and 306 of the mainprocessor 102. This can occur if the battery processor 252 is driving ahigh output signal as opposed to turning on a tri-state buffer (i.e.acting as an open drain). The pull-up resistor (i.e. resistor R2) can beplaced between the transmit and receive pins 304 and 306 of the mainprocessor 102 because the transmit line idles in a high state.

Alternatively, if conventional battery packs are used, then the batteryID resistor value can be obtained by communicating over the SMART_BATline. Accordingly, by also incorporating a battery ID resistor into thesmart battery 130, the smart battery 130 is compatible with mobiledevices that are manufactured to use battery packs that have battery IDresistors and with mobile devices that are manufactured to use smartbatteries. It should be understood that the battery ID resistor isincluded within the smart battery 130 (i.e. see FIG. 5C).

To facilitate operation with different batteries having different chargecapacities, maximum and minimum logic levels for voltages and currentscan be defined as shown, for example, in equations 1-2 for the smartbattery 130 and equations 3-4 for the main processor 102.

Vih=0.25*Vdd+0.8 V  (1)

Vil=0.15*Vdd  (2)

Vil˜=0.3*(GPIO Vdd)  (3)

Vih˜=0.7*(GPIO Vdd)  (4)

For example, considering a smart battery with a termination voltage of4.4 V (i.e. Vdd=4.4 V), Vih(max)=1.9 V, and Vil(max)=0.66 V. Furtherconsidering a main processor that operates with a Vdd on the transmitand receive pins 304 and 306 of 2.8 V and 2.6 V (depending on thecommunication chipset), Vil(min)=0.78 V, and Vih(max)=1.96 V.

Referring now to FIG. 5B, shown therein is a schematic of an exemplaryembodiment of another battery interface 350 that can be used in themobile device 100 to couple the main processor 102 to the smart battery130. In this case, the battery interface 350 includes a similar RCnetwork as was used in the battery interface 256, and two tri-statebuffers 354 and 356. The power management module 134 is connected to theSMART_BAT battery data line of the smart battery 130 via input pin 358.

A tri-state buffer can pass a high or low logic level signal and candisconnect its input from its output depending on the value of thecontrol input. The input node of the tri-state buffer 354 is connectedto the transmit pin 304 of the main processor 102 and the output node ofthe tri-state buffer 354 is connected to the communication line 302 viathe resistor R2. The input node of the tri-state buffer 356 is connectedto the communication line 302 and the output node of the tri-statebuffer 356 is connected to the receive pin 306 of the main processor102. The main processor 102 also includes a TX_ENABLE pin for disablingand enabling the buffer 354 and is connected to the control input of thebuffer 354. In this exemplary implementation, both of the tri-statebuffers 354 and 356 can be enabled with a logic low signal. Further, insome implementations, the tri-state buffer 356 can always be enabled;this is described in further detail below. Accordingly, the controlinput of the tri-state buffer 356 can be connected to ground.

The tri-state buffers 354 and 356 can be used with the smart battery 130when the power management module 134 detects whether the smart battery130 has been removed. Battery removal detection is not a problem for theembodiment shown in FIG. 5A when battery packs with a battery IDresistor are used because a current, such as 10 μA, can be sourcedthrough the battery ID resistor (not shown). The resulting voltage dropcan then be measured to determine if the battery pack is still attachedto the mobile device 100. Checking for battery removal occurs undervarious situations, one of which is when the mobile device 100 isrecharging the battery.

Alternative embodiments can also be used to detect battery removal. Forinstance, a comparator circuit (not shown) can be connected to theSMART_BAT data line. The comparator circuit can operate independently ofthe main processor 102 and it can create and send a reset pulse to themain processor 102 in the event of battery removal. The comparatorthreshold can be lower than the 2.8/3.0 V GPIO rating so clamping is notan issue. In some embodiments, the thermistor (not shown) in the smartbattery 130 can be continuously polled. This can be done with aconnection that is separate from the UART pins on the main processor 102and so the voltage clamping of the transmit and receive pins 304 and 306are not an issue. The polling can be done by another processor otherthan the main processor 102.

With smart batteries, the battery ID can be stored in the battery memory254 and the battery processor 252 can communicate this information tothe main processor 102. This allows the smart battery 130 to beauthenticated via software to ensure that the smart battery 130 is not acounterfeit battery. Part of the authentication process involvesobtaining the battery ID whenever the smart battery 130 is inserted intothe mobile device 100 or each time the mobile device 100 is turned on.Otherwise, the authentication process is not usually repeated.

However, in at least some embodiments, the smart battery 130 can storethe battery ID in the battery memory 254 and can also include a batteryidentification (ID) resistor. This allows the smart battery 130 to bebackwards compatible with mobile devices that are only looking for thebattery ID resistor. The smart battery 130 is also compatible withmobile devices that communicate with the battery processor 252 to obtainthe battery ID. Both battery interfaces 256 and 350 support measuringthe battery ID resistor as well as communication between the mainprocessor 102 and the battery processor 252. The components used in thebattery interfaces 256 and 350 also provide ESD protection. The batteryID resistor can also be used to detect the presence of the battery 130.

The power management module 134 can independently check whether thebattery 130 is still connected to the mobile device 100. This featurecan be implemented using interrupts. This is typically done while thebattery 130 is being charged. In some cases, to detect battery removal,the power management module 134 passes a current through the battery IDresistor and the voltage across the battery ID resistor is measured.This current can be in the order of 10 μA. The power management module134 measures this voltage via input 358, which is connected to an analogto digital converter (not shown) in the power management module 134.During this process, the power management module 134 is directly sensingthe presence of the smart battery 130 and there is no need for aconnection between the power management module 134 and the mainprocessor 102. Further, during this time, there is no need for aconnection between the main processor 102 and the smart battery 130.Accordingly, in some cases, the tri-state buffer 354 can be disabled.The enabling/disabling of the buffer 354 can be done at certain times(i.e. battery insertion for example) and the current source (not shown)in the power management module 134 can be controlled in order to notinterfere with battery communication.

There can be instances in which the main processor 102, the batteryprocessor 252 and the power management module 134 can be operating atdifferent power levels. Accordingly, the embodiment of FIG. 5B can beused to protect the main processor 102 from the higher voltage levelsused by the battery processor 252 in certain situations. For example, ifthe smart battery 130 is removed, the voltage on the SMART_BAT data lineincreases above a threshold that is greater than 4 V. If battery removaloccurs while the smart battery 130 is being charged, then the mobiledevice 100 can be configured to reset and reboot. However, the transmitand receive pins 304 and 306 may not be able to accommodate such highvoltages since, in some implementations, the transmit and receive pins304 and 306 may only be rated for input/output voltages of 3.0/2.8 Vrespectively and will clamp any input voltage to 3.0/2.8 V instead ofpassing a voltage greater than 4 V that is typically used by the powermanagement module 134 for battery removal detection. Particularimplementations of the buffers 354 and 356 can be selected and providedwith enable/disable control signals to aid in resolving the voltagecompatibility issues between the main processor 102, the batteryprocessor 252 and the power management module 134.

Referring now to FIG. 5C, shown therein is a schematic of a portion ofanother exemplary embodiment of a smart battery 400. In general, in atleast some of the embodiments shown herein, the battery processor 252′can be the PIC10F202 microprocessor. The battery processor 252′ includesgeneral-purpose pins GP0, GP1, GP2, GP3, and power supply pins Vdd andVss. The smart battery 400 includes resistors R1 b, R2 b, R3 b, andcapacitor C1 b. The resistors R1 b, R2 b and the capacitor C1 b can bepart of the battery interface 256. In some cases, the battery module262′ can have a termination voltage of 4.2 V or 4.4 V.

The SMART_BAT data line is connected to the input GP0 of the batteryprocessor 252′ through resistor R1 b. The resistor R2 b can be used asthe battery ID resistor which allows for backwards compatibility withmobile devices that can not communicate with the battery processor 252′as well as for other uses. The battery ID resistor R2 b can have severaldifferent resistance values such as, for example, 100 kΩ, 86.6 kΩ and 15kΩ, to indicate the charge capacity of the battery module 262′.

The capacitor C1 b and the resistor R1 b provide ESD protection for theinput pin GP0. Further ESD protection on the input pin GP0 can beprovided by connecting a diode array (not shown) such as, for example,the SMF05 made by SEMTECH of Camarillo, Calif., USA. The resistor R3 balso provides ESD protection for the GP3 pin. The smart battery 400 canalso include standard lithium-ion cell protection circuitry (not shown).In one exemplary implementation, the resistor R1 b can have a resistanceof 100Ω, the resistor R2 b can have a resistance of 100 kΩ, 86.6 kΩ or15 kΩ, the resistor R3 b can have a resistance of 100Ω, and thecapacitor C1 b can have a capacitance of 0.1 μF.

The battery processor 252′ can directly read high logic level signals(i.e. a logic level of ‘1’ at 2.8 V for example) and low logic levelsignals (i.e. a logic level of ‘0’ at 0 V for example) via the GP0 pin.To write a ‘0’, the GP0 pin, which is a general-purpose input/outputpin, is configured as an output pin and driven low. To write a ‘1’, theGP0 pin is configured as an input pin and is pulled high by the mainprocessor 102 (via the resistor R2). In some cases, the batteryprocessor 252′ does not drive a ‘1’ since this can damage the hardwareof the main processor 102.

Counterfeit battery packs are becoming more prevalent and areproblematic since these battery packs may not have as much capacity asan authentic battery pack. This can lead to various problems, whichincludes damaging the mobile device 100 when a counterfeit battery packis being charged. Accordingly, the battery processor 252 of the smartbattery 130 can execute an encryption or cryptographic algorithm thatallows the main processor 102 to authenticate the smart battery 130 toensure that it is not a counterfeit battery or a battery pack that isnot authorized for use with the mobile device 100 (this may be due tothe non-authorized battery pack not having sufficient charge capacity,sufficient protection circuitry, different charging characteristics andthe like).

Typically, current smart batteries employ symmetric key cryptography forauthentication with a mobile device based on a private key. This meansthat conventional smart batteries and conventional mobile devices bothcontain the private key. Smart batteries can be custom designed toprotect information stored on the battery hardware. However, there is noanalogous hardware protection for mobile devices. Mobile devicestypically use off-the-shelf components, and thus the private key istypically held in a regular flash memory chip. The contents of the flashchip can be recovered, perhaps via JTAG emulation and debugging or byremoving the chip from the printed circuit board, and then the privatekey can be recovered. Once this private authentication key is recovered,then counterfeit batteries may be manufactured with the private keyinformation. Accordingly, from a security point of view, the counterfeitsmart battery now has the same security information as an authenticsmart battery, and thus the mobile device 100 cannot discriminatebetween the two batteries.

To address this issue, the following security protocol can be used. Themain processor 102 can send a challenge message to the smart battery130. The challenge message can be a random number. The battery processor252 takes the challenge message and produces a response message by usinga cryptographic algorithm, the challenge message and a private key. Anysuitable cryptographic algorithm can be used that is feasible forexecution on the smart battery 130 and for which it is reasonablycomputationally infeasible for a hacker to determine the private key.The main processor 102 then compares the response message with areference message stored in the mobile device 100. If there is a match,this indicates that the smart battery 130 knows the private key. Thesmart battery 130 is then verified as an authentic battery that is safeand is qualified for use. However, counterfeit batteries will generallynot know the private key.

The private key is not stored in the device memory 108 of the mobiledevice 100 because in some cases the mobile device 100 is not secure.However, the battery memory 254 of the smart battery 130 is secure andthe private key is stored in the battery memory 254. Further, severalchallenge and response pairs can be stored on the mobile device 100 andany one of them can be used to authenticate the battery pack. In someimplementations, the challenge and response pairs can be stored in theNVRam of the mobile device 100.

For an additional level of security, each mobile device 100 can beprogrammed with a unique challenge and response pair. This ensures thatif a third party intercepts the challenge and response pair for a givenmobile device, the third party only obtains challenge and responseinformation generated for that particular mobile device. Other mobiledevices will use a different challenge and response pair. Accordingly,even if the challenge and response information is copied for one mobiledevice and incorporated into a counterfeit battery, the counterfeitbattery can only be used with that particular mobile device and will notwork with other mobile devices. Therefore, in order for a counterfeiterto succeed in producing counterfeit batteries that appear to beauthentic, the counterfeiter would have to obtain the cryptographicalgorithm and the private key.

Accordingly, during the manufacture of a given mobile device, one ormore unique challenges can be generated, and the corresponding responsescalculated for a given private key. The challenge and response pairs arethen stored on the given mobile device and the given private key isstored on the smart battery that is to be used with the given mobiledevice. In some embodiments, the smart batteries of a given form factorcan be given the same private key. This allows the smart batteries to beinterchangeable with one another for a given mobile device. Accordingly,a smart battery can be replaced for a given mobile device if the smartbattery is lost or damaged.

Conventional battery packs have a battery ID resistor that can be sensedby the main processor 102 to determine what type of battery pack hasbeen connected to the mobile device 100. The mobile device 100 can storebattery information profiles for several different types of batteriesthat can be used with the mobile device 100. The battery informationprofiles are typically stored in the memory 106. The mobile device 100uses the particular battery information profile that corresponds to thebattery pack that is inserted into the mobile device 100. The batteryinformation includes information related to charging curves, dischargingcurves and the like. The curves are plots of voltage versus chargecapacity and can be stored in lookup tables (LUT). Interpolation can beused on the LUT.

The voltage vs. charge capacity curves are useful since differentbattery packs can be charged at different rates. For instance, certainbattery packs can accommodate a charging current of 750 mA, while otherscan accommodate a charging current of 1.5 A. The curves can also changedepending on the operation of the mobile device 100. For instance, thecommunication standard used by the mobile device 100 for wirelesscommunication has an effect on the rate and amount of discharge of thebattery packs. For instance, different discharge curves apply to thesame battery pack depending on whether the mobile device 100 is usingthe CDMA communication standard or the GPRS communication standard.Alternatively, rather than storing two battery information profiles,which include voltage vs. charge capacity curves, for two differentcommunication standards, a battery information profile for a firstvoltage vs. charge capacity curve can be stored and another batteryinformation profile that includes a set of offsets can be stored toderive the other curve from the first curve.

In another alternative, rather than store different battery informationprofiles for mobile devices that operate differently, due to thecommunication standard used for example, a universal battery informationprofile can be used. The mobile device 100 can then be configured toread the information from the universal battery information profile butperform different calculations to obtain the necessary battery relatedinformation such as the battery charging curve for example. Forinstance, once again using the GSM and CDMA communication standards asan example, for CDMA radios, current will be drawn generally at constantrate, whereas for GSM radios, there will be several spikes in the drawncurrent. In this case, for each battery information profile for eachbattery type, a charging curve can be generated based on a firstcondition to emulate current usage by a first radio. Load conditioninformation can then be noted for the differences in current usage bythe other radios with respect to the first radio. This load conditioninformation can be stored on the mobile device 100 or the smart battery130. Accordingly, when the battery information profile is read by themobile device 100, additional calculations can be made by the mobiledevice 100 based on the load condition information if the mobile device100 uses one of the “other radios”.

In some embodiments of the mobile device 100, rather than, or inaddition to, storing the battery information profiles on the mobiledevice 100, the battery information profiles can be stored in thebattery memory 254 of the smart battery 130. Accordingly, when a newsmart battery is released, rather than having to update the batteryinformation profiles on the mobile device 100, the battery informationprofile is already contained in the smart battery 130. The mainprocessor 102 can access the battery information profile stored on thesmart battery to determine battery charging/discharging characteristicsevery time a different smart battery, a new smart battery, or a smartbattery of a new battery supplier is used. The mobile device 100 canthen store the new battery information profile in the memory 106. Thebattery information profile is accessed according to a batterycommunication protocol that is described in more detail below.

Accordingly, in some embodiments, battery information profiles can bestored in the mobile device 100 for a given smart battery 130 and thegiven smart battery 130 can also store additional battery informationprofiles in the battery memory 254. In some cases, a rule of thumb thatcan be followed is that if a particular battery information profileexists in both the smart battery 130 and the mobile device 100, then thebattery information profile stored in the smart battery 130 supercedesthe battery information profile stored on the mobile device 100.However, other rules of thumb can also be applied. For instance, sincethe battery information profile in the smart battery 130 can be revisioncontrolled and the corresponding version number can be read by themobile device 100, the mobile device 100 can be provided with versioninformation of a version number that corresponds to the release ofbattery information that is erroneous and should not be used. In thiscase, the mobile device 100 can use the battery information profileassociated with a version number that has been identified as beingcorrect; this battery information profile may already be stored on themobile device 100.

In addition, in at least some embodiments, rather than using a batteryID resistor, or sourcing the battery ID resistor, the battery ID canalso be stored in the battery memory 254. The main processor 102 thencommunicates with the smart battery 130 over the communications line 302to obtain the battery ID information rather than relying on the use of abattery ID resistor. The battery ID information can be accessedaccording to a battery communication protocol that is described in moredetail below. Accordingly, extra circuitry is not required for readingthe battery ID resistor. This reduces circuit complexity and cost. Thebattery ID depends on the type of smart battery and can be used toidentify the smart battery according to model, manufacturer, chemistryetc. In some embodiments, battery discharge/charging information can bestored on the mobile device for several batteries, and once the batteryID is determined, the main processor 102 can use this ID information toselect the corresponding battery profile information such as batterydischarge/charging information for battery charging and monitoring. Inthis sense, the mobile device 100 can support multiple batteries.

There may also be some embodiments in which an interface is providedbetween the main processor 102 and the smart battery 130 such that themobile device is compatible with a conventional battery pack that usesonly a battery ID resistor and with a smart battery that stores thebattery ID information in the battery memory 254. In these cases, thedevice can assume that it is connected to a smart battery and try tocommunicate accordingly. If this communication fails, then theconventional method of reading the battery ID resistor can be used.

In order for the main processor 102 to communicate with the batteryprocessor 252, a battery communication protocol is used. The logiclevels that are used for data communication depend on the implementationof the main processor 102 and the battery processor 252. For example, insome implementations, a high logic level (i.e. a ‘1’) can be representedby approximately a 2.8 V line level and a low logic level (i.e. a ‘0’)can be represented by approximately 0 V. Due to the use of ESDprotection circuitry, the communication line 302 can be limited to adata rate, such as approximately 300 bps, for example, which provides a3.33 ms bit time. Data can be transmitted by leading with one start bit,followed by several 8-bit data segments (in which the LSB is transmittedfirst), followed by at least one stop bit. In some implementations, thestart bit can be a ‘0’ and the stop bit can be a ‘1’.

In some implementations, the communication line 302 idles at the highlogic level (driven by the transmit pin 304 of the main processor 102)while a session is active. When the session is inactive, the mainprocessor 102 can configure the communication line 302 to operate in aninactive/low-power state. Accordingly, in some implementations, thetransmit and receive pins 304 and 306 can be driven low.

Since the communication line 302 is a half-duplex line, only the mainprocessor 102 or the battery processor 252 can transmit data at a givenpoint in time. Accordingly, there can be a master/slave relationshipbetween the main processor 102 and the battery processor 252 in whichthe battery processor 252 is allowed to transmit only in response to acommand from the main processor 102. The main processor 102 can transmitat any time, except while waiting for a response from the batteryprocessor 252. The battery processor 252 can begin transmitting aresponse within a given amount of time after receiving an end of packetmarker (END) from the main processor 102. Further, the main processor102 can wait for a certain amount of time for a response from the smartbattery 130 before resending the original request.

The data link between the main processor 102 and the battery processor252 can be implemented using the RC 1055 implementation. To avoid havingthe main processor 102 and the battery processor 252 transmit at thesame time, the “leading stop character” optimization is not used.Rather, the Data Link layer attempts to provide a packet-based interfaceon top of the serial byte-stream provided by the physical communicationlayer. It does this by “framing” each packet (i.e. making the end ofeach packet easily found within the byte stream) with a unique charactersuch as “0xC0”. Accordingly all incoming bytes are stored until thecharacter “0xC0” is read. The stored data is then passed up to the nextlayer.

However, the character “0xC0” may be sent as data, so one should ensurethat the character “0xC0” is unique and used only to mark the end of aframe. One way to do this is to replace any instance of the character“0xC0” in the data with two characters: such as “0xDB” and “0xDD” forexample. If it is desired to send the character “0xDB” in the data,then, in a similar way, the character “0xDB” is replaced with thecharacters “0xDB” and “0xDC” for example.

In terms of receiving data, for this exemplary embodiment, when thecharacter “0xC0” is encountered then data transmission is finished. Ifthe character “0xDB” is encountered, the fact that something special hasto be done on the next character is recorded, and every other characteris stored in a buffer. Now, in this example if the character was “0xDB”,when the next character arrives one of three things can be done: 1) ifthe next character is “0xDD”, then the character “0xC0” is stored in thebuffer, 2) if the next character is “0xDC”, then the character “0xDB” isstored in the buffer, or 3) if the next character is anything else, thenan error occurred, which can be handled by the next layer.

As stated earlier, the battery processor 252 will nearly always be insleep mode to reduce power consumption. Upon receiving a START bit fromthe main processor 102, the battery processor 252 will wake and acceptincoming data until either an END character is received or the watchdogtimer expires (for example, the watchdog timer can expire afterapproximately 2.3 s). Therefore, the main processor 102 attempts totransmit each request packet before the watchdog timer expires.Accordingly, the main processor 102 can attempt to transmit each requestpacket with the smallest possible inter-byte delay.

Referring now to FIG. 6A, shown therein is a block diagram of anexemplary embodiment of a general structure for a packet 450 that can beused for communication between the main processor 102 and the batteryprocessor 252. The data bits in the packets can be transmitted from leftto right and multi-byte data elements can be transmitted in a LeastSignificant Bit (LSB) (little endian) fashion. The packet 450 includes aCODE field 452, a DATA field 454, a LENGTH field 456 and an ERROR_CHECKfield 458. Multi-byte data is simply any number that requires more than8 bits (one character) to store in memory. For example, consider thenumber 0x12345678, which requires 4 characters. When these charactersare transmitted, they are sent in an LSB fashion with the LSB first.That is, first 0x78 is sent, followed by 0x56, 0x34, and finally 0x12.

The CODE field 452 identifies the type of packet (i.e. whetherinformation is being provided or requested). When a packet is receivedwith an unknown CODE field 452, a protocol version response packet istransmitted by the battery processor 252. This response packet can alsobe transmitted by the battery processor 252 any time a packet istransmitted by the main processor 102 that has an incorrect length,error checking field value, etc. In some implementations, the CODE field452 includes codes for specifying a protocol version request, a protocolversion response, a battery authentication challenge, a batteryauthentication response, a battery information request and a batteryinformation response. In some implementations, the CODE field 452 caninclude one byte.

The DATA field 454 includes data that depends on the specific request orresponse that is being made. The DATA field 454 can include as manybytes as required to transmit data, however there can be a limit. Insome embodiments, the LENGTH field 456 can contain numbers from 0-255.Since the CODE, LENGTH and ERROR_CHECK fields are all included in thelength, the entire packet 450 can be a maximum of 255 characters and theDATA field 454 can be a maximum of 252 characters. Examples of differenttypes of data are discussed below.

The LENGTH field 456 defines the number of bytes in the packet,including those in the CODE field 452, DATA field 454, LENGTH field 456and ERROR_CHECK field 458. SLIP framing is generally not consideredbecause it is generally not known how long the SLIP frame will be. Somecharacters may be doubled from one character to two, and it is notcertain which or how many will be doubled. In some implementations, theLENGTH field 456 includes one byte.

The ERROR_CHECK field 458 provides data that can be used to verify thatdata has been correctly received at the main processor 102 or thebattery processor 252. Various types of communication error-checkingschemes can be used depending on the processing power of the batteryprocessor 252. In some implementations, a CheckSum value is used. TheCheckSum value is an unsigned 8-bit value such that the sum of the datacontained in the CODE through CheckSum fields modulus 256 is equal to 0.In some implementations, when using CheckSum, the ERROR_CHECK field 458includes one byte.

Referring now to FIG. 6B, shown therein is a block diagram of anexemplary embodiment of a packet 460 that can be used for a protocolversion request packet or a battery information request packet. Thepacket 460 includes a CODE field 462, a LENGTH field 464, and aCHECK_SUM field 466.

The protocol version request is transmitted by the main processor 102 torequest the protocol version of the smart battery 252. Accordingly, theCODE field 462 includes the code to identify a protocol version request.The LENGTH field 464 includes the value 3 since there are three bytes inthe protocol version request packet 460. The battery processor 252responds to the protocol version request packet with a protocol versionresponse packet. The CHECK_SUM field 466 is used for error checking andcan include one byte.

The battery information request packet is transmitted by the mainprocessor 102 when information about the operation of the smart battery130 is required. The smart battery 130 responds with a batteryinformation response packet. In this case, the CODE field 462 includesthe code that signifies that the packet 460 is a battery informationrequest packet. The CODE field 462 can include one byte. The LENGTHfield 464 includes 1 byte indicating that there are three bytes in thepacket 460.

Referring now to FIG. 6C, shown therein is a block diagram of anexemplary embodiment of a protocol version response packet 470. Theprotocol version response packet 470 includes a CODE field 472, a firstDATA field 474 including the protocol version, a second DATA field 476including the battery ID, a LENGTH field 478 and a CHECK_SUM field 479.The battery processor 252 responds with the protocol version responsepacket 470 upon receiving the protocol version request packet 460 fromthe main processor 102, or any unrecognized code in the CODE field, orany error (e.g., bad length, bad check_sum, etc.). The protocol versionresponse packet 470 provides the battery ID for the smart battery 252.Accordingly, in at least some implementations, the battery informationcan be cached in the smart battery 130, so that there is no need todownload all of the battery information when only the battery ID isrequired.

The CODE field 472 includes the code that signifies that the packet 470is a protocol version response packet. The CODE field 472 can includeone byte. The first DATA field 474 includes the protocol version whichis explained in more detail below. The first DATA field 474 can include2 bytes and the second DATA field 476 can include two bytes. The LENGTHfield 478 indicates that the packet 470 includes 1 byte indicating thatthere are seven bytes in the packet 470. The CHECK_SUM field 479 is usedfor error checking and can include one byte.

The protocol version is a number that indicates the version of thebattery communication protocol that is being used. In someimplementations, the protocol version can include an 8-bit major versionnumber and an 8-bit minor version number. The minor version number canbe increased for each “backwards compatible” change to the batterycommunication protocol. The major version number can be increased witheach change that breaks backwards compatibility (this resets the minorversion number to 0). For example, the major version number can increaseif any one of the cryptographic algorithm, the private key, and thebattery information format is changed.

Referring now to FIG. 6D, shown therein is a block diagram of anexemplary embodiment of a packet 480 that can be used for batteryauthentication challenge, battery authentication response or batteryinformation response. The packet 480 includes a CODE field 482, a DATAfield 484, a LENGTH field 486 and a CHECK_SUM field 488.

In the case of a battery authentication challenge, the main processor102 can request battery authentication by sending a batteryauthentication challenge to the battery processor 252. The batteryprocessor 252 can then respond with a battery authentication responsepacket after computing the data required by the battery authenticationresponse challenge. The CODE field 482 includes the code that signifiesthat the packet 480 is a battery authentication challenge packet. TheCODE field 482 can include one byte. The DATA field 484 includes achallenge message for the smart battery 130. In some implementations,the challenge message can include 4 bytes; accordingly, the challengecan be a 32-bit challenge. The LENGTH field 486 includes 1 byteindicating that there are seven bytes in the packet 480. The CHECK_SUMfield 488 is used for error checking and can include one byte. Theauthentication process that is used is described in more detail below.

In the case of a battery authentication response, upon receiving abattery authentication challenge packet from the main processor 102, thebattery processor 252 then responds with the battery authenticationresponse packet after computing the data required by the batteryauthentication response challenge. In this case, the CODE field 482includes the code that signifies that the packet 480 is a batteryauthentication response packet. The CODE field 482 can include one byte.The DATA field 484 includes a challenge response from the smart battery130. In some implementations, the challenge response can include 4bytes; accordingly, the challenge response can be a 32-bit value. TheLENGTH field 486 includes 1 byte indicating that there are seven bytesin the packet 480. The CHECK_SUM field 488 is used for error checkingand can include one byte. The authentication process that is used isdescribed in more detail below.

In the case of a battery information response, upon receiving a batteryinformation request packet from the main processor 102, the batteryprocessor 252 responds with the battery information response. In thiscase, the CODE field 482 includes the code that signifies that thepacket 480 is a battery information response packet. The CODE field 482can include one byte. The DATA field 484 includes the batteryinformation and can be 12 bytes long. The LENGTH field 486 includes 1byte indicating that there can be fifteen bytes in the packet 480. TheCHECK_SUM field 488 is used for error checking and can include one byte.

Referring now to FIG. 7A, shown therein is a block diagram of anexemplary embodiment of a battery information data construct 490. Thebattery information data construct 490 is a packet of a variable numberof item fields 492-496 that contain data about the smart battery 130.For instance, the item fields 492-496 can include information for a LUTfor a battery charge curve. Each item field 492-496 can have the formatshown in FIG. 7B and can include a CODE field 500 and a DATA field 502.The CODE field 500 can include an 8-bit identifier that identifies thetype of item data such as battery charge curve for example. The DATAfield 502 is dependent upon the specific item. Fixed length items do notrequire a LENGTH field. However, variable length items will include aLENGTH field (not shown) inserted between the CODE field 500 and theDATA field 502. In an alternative, rather than transmitting the batteryID in the protocol version response packet, the battery ID can betransmitted in one of the items 492-496. If one of the items 492-496contains battery profile information such as battery charge curveinformation, then the CODE field 500 includes a code to indicate batterycharge curve information, and the LENGTH field (not shown) includes thenumber of bytes in the packet including the CODE, LENGTH and DATAfields. The DATA field 502 contains enough bytes to represent thebattery charge curve information.

As previously mentioned, the smart battery 130 can execute acryptographic algorithm during authentication with the main processor102. Based on a private key located securely only within the memory ofthe smart battery 130 and a challenge provided by the main processor102, the smart battery 130 can produce a response by applying thecryptographic algorithm. In some implementations, the private key can be64 bits and the challenge can be 32 bits. Different sizes may beselected for the private key and the challenge provided that a suitablelevel of security is provided. In some implementations, the challengecan be encrypted and the smart battery 130 can execute a decryptionalgorithm to decrypt the challenge and then combine the challenge withthe private key to produce the response. Other data transmitted betweenthe main processor 102 and the smart battery 130 can also be encrypted.

The smart battery 130 has been specially designed to be tamper resistantand include custom hardware and code protection registers for thispurpose. Accordingly, it is very difficult for a third party to extractthe private key from the smart battery 130. However, the same is nottrue of the mobile device 100. Accordingly, the private key is notstored in the mobile device 100. Instead, a unique (per device)pre-computed challenge and response pair based on a private key and acryptographic algorithm can be stored in the mobile device 100 duringmanufacturing. Accordingly, different challenge and response pairs canbe stored on different mobile devices. The private key and thecryptographic algorithm is then only stored in the smart battery 130.While it may be possible to create a counterfeit battery that canoperate in a single mobile device, it will be very difficult to createcounterfeit batteries that can operate with all mobile devices thatutilize this authentication process. In some implementations, severalchallenge and response pairs can be stored on the mobile device 100 andat least one of the pairs can be used during authentication.

Referring now to FIG. 8, shown therein is a flowchart of an exemplaryembodiment of an authentication process 550 that can be employed by themain processor 102 to authenticate the smart battery 130. Authenticationis done each time the mobile device 100 is turned on and each time abattery is inserted into the mobile device 100. At step 552, the mainprocessor 102 reads a memory element on the mobile device 100 to obtaina challenge and response pair. At step 554, the main processor 102transmits the challenge to the battery processor 252. At step 556, thebattery processor 252 applies the cryptographic algorithm using aprivate key to generate a response and at step 558, the batteryprocessor 252 sends the response to the main processor 102. At step 560,the main processor 102 compares the generated response with the storedresponse. At this step, if the stored response is identical to theresponse generated by the battery processor 252 then the smart battery130 is verified to be authentic. If not, the smart battery is notverified to be authentic and appropriate steps are taken. Due to thepossibility of a transmission error (and the possibility of an incorrectCHECK_SUM), the main processor 102 can make several challenge andresponse attempts before identifying the battery pack as a counterfeitbattery or a non-authorized third party battery pack.

If the battery pack is identified as a counterfeit battery or anon-authorized third party battery pack, then the operating systemassociated with the main processor 102 can set a BSTAT_INSECURE batterystatus but continue the normal boot process. The main processor 102 canalso execute software that provides user feedback, controls radioaccess, and prevents the mobile device 100 from running for more than ashort time, etc. The main processor 102 will not charge, or charge to afull capacity, a non-authentic battery pack, i.e. a battery pack thatfails the authentication process. However, in some implementations,prior to authentication, charging of a freshness seal (i.e. a batterythat is in an under-voltage condition) can be allowed until the batterytermination voltage is approximately 3.0 V. The under-voltage conditionoccurs when the battery has been discharged so that the terminationvoltage is about 2.5 V and the protection circuitry in the battery hasdisconnected the battery terminals from the battery module. The batteryremains in this state until a charging voltage is applied to the batteryterminals. Charging the battery to a minimum charge capacity so that thetermination voltage is about 3.0 V is considered safe assuming thatthere are no battery packs having a charge capacity lower than that of a3.0 V battery pack. However, in other embodiments, if the battery packis identified as a counterfeit battery or a non-authorized third partybattery pack, then the operating system associated with the mainprocessor 102 can be configured to not allow the normal boot process toproceed. Instead, the operating system can be configured to provide anindication that there is something wrong with the battery; for instance,the operating system can display a screen that shows a battery with aline through it, or another suitable graphical indication.

Referring now to FIG. 9, shown therein is a flowchart 600 showing thetypical operation of the mobile communication device 100 having a smartbattery that may or may not be authentic. Upon startup of the mobiledevice 100, or when battery insertion is detected, the main processor102 can perform the following steps. At step 602, the main processor 102sends a protocol version request packet to the battery processor 252. Atstep 604, the battery processor 252 generates and sends a protocolversion response packet to the main processor 102. At step 606, the mainprocessor 102 compares the protocol version in the protocol versionresponse packet with supported protocols and continues to step 610 ifthe protocol version number is compatible.

If the protocol version number is not compatible, then at step 608, themain processor 102 performs the actions previously described fornon-authentic battery packs and stops or limits (as previouslydescribed) any charging activities that may have begun. For instance,the mobile device 100 can show a “no battery icon”, even though there isa battery. In some cases, the main processor 102 can allow the mobiledevice 100 to continue operating for a fixed period of time such as Xminutes, but not allow charging or not allow charging to a fullcapacity. Charging is the greatest risk for use of a counterfeit ornon-qualified battery. Allowing X minutes of use could allow the user tomake an emergency phone call while using a counterfeit battery thathe/she has unknowingly bought.

At step 610, the main processor 102 performs the authentication process550. At step 612, if the battery authentication is successful then theprocess 600 moves to step 614. Otherwise, the process 600 moves to step608. At step 614, the main processor 102 can send a battery informationrequest packet to the battery processor 252. At step 616, the batteryprocessor 252 accesses the requested battery information and generates abattery information response packet which is then sent to the mainprocessor 102. At step 618, the main processor 102 can use the batteryinformation to charge the smart battery 130 or to monitor the smartbattery 130 during operation to provide the user with an indication ofremaining charge, etc. It should be noted that while steps for datatransmission errors and communication retries are not explicitly shownin the process 600, they can be included in the process 600.

Referring now to FIG. 10, shown therein is a flowchart of an exemplarymanufacturing process 650 for manufacturing a mobile communicationdevice 100 having a smart battery 130. At step 652, a communicationprotocol and security protocol is specified for the smart battery 130.At step 654, a manufacturer of the smart battery 130 incorporates codefor implementing the communication protocol and the security protocolinto the smart battery 130. At steps 656 and 658, a manufacturer ofbattery packs, along with a Printed Circuit Board (PCB) vendor, putstogether the hardware (i.e. circuitry) for the smart battery 130. Atstep 660, the smart batteries 130 are then tested with the mobiledevices 100. Further, at step 660, the smart batteries and mobiledevices are paired up. For each pair, several unique challenge andresponse pairs are generated based on a private key and a cryptographicalgorithm. The challenge and response pairs are stored on the mobiledevices and the corresponding private key and the cryptographicalgorithm is stored on the corresponding smart batteries.

In one aspect, at least one embodiment described herein provides amobile communication device comprising a main processor for controllingthe operation of the mobile communication device; a device memorycoupled to the main processor and adapted to store a plurality ofbattery information profiles; and a smart battery coupled to the mainprocessor, the smart battery being adapted to provide supply power tothe mobile device. The smart battery comprises a battery processoradapted to control the operation of the smart battery and communicatewith the main processor; and a battery memory coupled to the batteryprocessor, the battery memory being adapted to store a Battery IDindicating the model of the smart battery. The main processor isconfigured to communicate with the battery processor to obtain theBattery ID and select one of the battery information profiles based onthe Battery ID.

The battery memory can further comprise an additional batteryinformation profile, and the main processor can be configured to use theadditional battery information profile provided by the battery memory.

The battery memory can further comprise an additional batteryinformation profile with a version number and the main processor can beconfigured to use the additional battery information profile when theversion number indicates that the additional battery information profileis newer than the battery information profiles stored in the devicememory.

The battery memory can further comprise an additional batteryinformation profile with a corresponding version number and the mobiledevice can comprise version information identifying version numbersassociated with erroneous additional battery information profiles andthe main processor can be configured not to use the additional batteryinformation profile if the corresponding version number is indicated inthe version information.

The battery memory can further comprise additional battery informationprofiles for different communication standards, and the main processorcan be configured to use one of the additional battery informationprofiles that correspond to the communication standard employed by thecommunication subsystem.

One of the additional battery information profiles can comprise a lookuptable with voltage versus charge capacity information, and another ofthe additional battery information profiles can comprise a set ofoffsets that are applied to the lookup table.

In another aspect, at least one embodiment described herein provides amethod for obtaining battery information for a mobile communicationdevice that comprises a main processor, and a smart battery comprising abattery processor and a battery memory. The method comprises:

storing a plurality of battery information profiles in the devicememory;

storing a Battery ID in the battery memory indicating the model of thesmart battery;

providing a communication interface between the smart processor and themain processor;

sending the battery ID from the battery processor to the main processor;and

selecting one of the battery information profiles at the mobilecommunication device based on the Battery ID.

The method can further comprise providing the battery memory with anadditional battery information profile, and using the additional batteryinformation profile rather than the battery information profiles storedin the device memory.

The method can further comprise providing the battery memory with anadditional battery information profile along with a version number andusing the additional battery information profile rather than the batteryinformation profiles stored in the device memory when the version numberindicates that the additional battery information profile is newer thanthe battery information profiles stored in the device memory.

The method can further comprise providing the battery memory with anadditional battery information profile with a corresponding versionnumber and providing the mobile device with version informationidentifying version numbers associated with erroneous additional batteryinformation profiles and wherein the method comprises not using theadditional battery information profile if the corresponding versionnumber is indicated in the version information.

The method can further comprise providing the battery memory withadditional battery information profiles for different communicationstandards, and using one of the additional battery information profilesthat correspond to the communication standard employed by the mobilecommunication device.

The method can further comprise providing one of the additional batteryinformation profiles as a lookup table with voltage versus chargecapacity information, and another of the additional battery informationprofiles with a set of offsets that are applied to the lookup table.

In another aspect, at least one embodiment described herein provides asmart battery for providing supply power to a mobile device. The smartbattery being capable of being connected to the mobile device, the smartbattery comprises a battery processor adapted to control the operationof the smart battery and communicate with a processor of the mobiledevice when the smart battery is connected to the mobile device; and abattery memory coupled to the battery processor, the battery memorybeing adapted to store a Battery ID indicating the model of the smartbattery, a battery information profile along with an identifier forindicating situations in which the battery information profile is to beused by the mobile device.

The identifier can be a version number and the battery informationprofile can be used by the mobile device when the version numberindicates that the battery information profile is newer than batteryinformation stored in the mobile device.

The battery memory can comprise several battery information profiles fordifferent communication standards.

Further, one of the battery information profiles can comprise a lookuptable with voltage versus charge capacity information, and another ofthe battery information profiles comprise a set of offsets that areapplied to the lookup table.

In another embodiment, at least one embodiment described herein providesa computer readable medium for obtaining battery information for amobile communication device that comprises a main processor, and a smartbattery comprising a battery processor and a battery memory, thecomputer readable medium comprising program code executable by aprocessor of the mobile device for causing said device to implement themethod as described in paragraph 114.

The battery memory can be provided with an additional batteryinformation profile, and the program code can comprise instructions forcausing said device to use the additional battery information profilerather than the battery information profiles stored in the devicememory.

The battery memory can be provided with additional battery informationprofiles for different communication standards, and the program code cancomprise instructions for causing said device to use one of theadditional battery information profiles that correspond to thecommunication standard employed by the mobile communication device.

One of the additional battery information profiles can be a lookup tablewith voltage versus charge capacity information, and another of theadditional battery information profiles can be a set of offsets that areapplied to the lookup table.

It should be understood that various modifications can be made to theembodiments described and illustrated herein, without departing from theembodiments, the general scope of which is defined in the appendedclaims. For instance, while the embodiments described herein generallyrelate to a mobile communication device, those skilled in the art willrecognize that the techniques and structures described herein cangenerally be applied to a mobile device that uses a smart battery, andthe device does not necessarily have to be a mobile communicationdevice. Furthermore, some of the elements of the exemplary embodimentsdescribed herein can be implemented in software or hardware or somecombination thereof.

1. A mobile device comprising: a main processor; and a device memorycoupled to the main processor, the device memory configured to store aplurality of battery information profiles, including a batteryinformation profile corresponding to a communication standard employedby the mobile device; wherein the main processor is configured tocommunicate with a battery processor of a smart battery to obtain aBattery ID from the smart battery; wherein the main processor isconfigured to select the battery information profile corresponding tothe communication standard, from among the plurality of batteryinformation profiles stored in the device memory, based on the batteryID; and wherein the main processor is configured to operate based on theselected battery information profile corresponding to the communicationstandard.
 2. The mobile device of claim 1, wherein the communicationstandard employed by the mobile device is for a communication subsystemproviding wireless communication with a wireless network.
 3. The mobiledevice of claim 1, wherein the main processor is further configured to:access a new battery information profile stored in a battery memory ofthe smart battery, the new battery information profile comprising aversion number indicating that the new battery information profile isnew; and store the new battery information profile in the device memory.4. The mobile device of claim 3, wherein the main processor is furtherconfigured to not use an incorrect battery information profile stored inthe battery memory, the incorrect battery information profile comprisinga version number that indicates that the battery information profilecontains incorrect battery information.
 5. The mobile device of claim 1,wherein the plurality of battery information profiles stored in thedevice memory correspond to a plurality of different communicationstandards, and the main processor is configured to select from among theplurality of stored battery information profiles the battery informationprofile that corresponds to the communication standard employed by themobile device.
 6. The mobile device of claim 1, wherein the plurality ofbattery information profiles stored in the device memory comprise auniversal battery information profile, and the main processor isconfigured to calculate a battery information profile for the smartbattery based upon the universal battery information profile and loadcondition information corresponding to the communication standardemployed by the mobile device.
 7. The mobile device of claim 1, whereinat least one of the plurality of battery information profiles stored inthe device memory comprises a lookup table with voltage versus chargecapacity information.
 8. The mobile device of claim 1, wherein at leastone of the plurality of battery information profiles stored in thedevice memory comprises a set of offsets that are applied to anotherbattery information profile.
 9. A method of obtaining batteryinformation for use by a mobile device, the mobile device comprising amain processor and device memory, the method comprising: storing aplurality of battery information profiles in the device memory,including a battery information profile corresponding to a communicationstandard employed by the mobile device; communicating with a batteryprocessor of a smart battery to obtain a Battery ID from the smartbattery; selecting the battery information profile corresponding to thecommunication standard, from among the plurality of battery informationprofiles stored in the battery memory, based on the Battery ID; andoperating the main processor based on the selected battery informationprofile corresponding to the communication standard.
 10. The method ofclaim 9, wherein the communication standard employed by the mobiledevice is for a communication subsystem providing wireless communicationwith a wireless network.
 11. A smart battery for providing supply powerto a mobile device, the smart battery comprising: a battery processorcontrolling the operation of the smart battery; and a battery memorycoupled to the battery processor, the battery memory being configured tostore a plurality of battery information profiles corresponding to aplurality of different communication standards; wherein the batteryprocessor is configured to receive a request for battery informationfrom the mobile device; and wherein the battery processor is configuredto transmit to the mobile device, in response to the request for batteryinformation, the battery information profile stored in the batterymemory corresponding to a communication standard employed by the mobiledevice.
 12. The smart battery of claim 11, wherein the communicationstandard employed by the mobile device is for a communication subsystemproviding wireless communication with a wireless network.
 13. The smartbattery of claim 11, further comprising a battery interface coupled tothe battery processor, wherein the request for battery information isreceived and the battery information profile corresponding to thecommunication standard is transmitted across the battery interface. 14.The smart battery of claim 11, wherein the battery processor is furtherconfigured to receive a request for battery identification from themobile device and, in response to the request for batteryidentification, transmit a battery ID stored in the battery memory tothe mobile device.
 15. The smart battery of claim 14, wherein therequest for battery information is based on the battery ID.
 16. Thesmart battery of claim 11, wherein at least one of the plurality ofbattery information profiles stored in the battery memory comprises alookup table with voltage versus charge capacity information.
 17. Thesmart battery of claim 11, wherein at least one of the plurality ofbattery information profiles stored in the battery memory comprises aset of offsets that are applied to another battery information profile.18. The smart battery of claim 11, wherein the plurality of batteryinformation profiles stored in the battery memory comprises a universalbattery information profile, the universal battery information profileusable with load current information corresponding to the communicationstandard employed by the mobile device to calculate a batteryinformation profile for the smart battery.
 19. A method of providingbattery information to a mobile device by a smart battery, the smartbattery comprising a battery processor and battery memory, the methodcomprising: storing a plurality of battery information profiles in thebattery memory, including a battery information profile corresponding toa communication standard employed by the mobile device; receiving arequest for battery information from the mobile device; and transmittingto the mobile device, in response to the request for batteryinformation, the battery information profile stored in the batterymemory corresponding to a communication standard employed by the mobiledevice.
 20. The method of claim 19, wherein the communication standardemployed by the mobile device is for a communication subsystem providingwireless communication with a wireless network.